package com.yang.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "order_form")
public class OrderFormEntity {

    @Id
    @Column(name = "id")
    private long id;

    @Column(name = "begin_day")
    private long beginDay;

    @Column(name = "stay_day")
    private int stayDay;

    @Column(name = "prepay")
    private float prepay;

    @Column(name = "rantal")
    private float rantal;

    @Column(name = "pay")
    private float pay;


    public OrderFormEntity() {
    }

    public OrderFormEntity(long id,long beginDay,int stayDay, float prepay, float rantal, float pay) {
        this.beginDay = beginDay;
        this.stayDay =stayDay;
        this.id = id;
        this.pay = pay;
        this.prepay = prepay;
        this.rantal = rantal;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getBeginDay() {
        return beginDay;
    }

    public void setBeginDay(long beginDay) {
        this.beginDay = beginDay;
    }

    public int getStayDay() {
        return stayDay;
    }

    public void setStayDay(int stayDay) {
        this.stayDay = stayDay;
    }

    public float getPrepay() {
        return prepay;
    }

    public void setPrepay(float prepay) {
        this.prepay = prepay;
    }

    public float getRantal() {
        return rantal;
    }

    public void setRantal(float rantal) {
        this.rantal = rantal;
    }

    public float getPay() {
        return pay;
    }

    public void setPay(float pay) {
        this.pay = pay;
    }

    @Override
    public String toString() {
        return "OrderFormEntity{" +
                "id=" + id +
                ", beginDay='" + beginDay + '\'' +
                ", stayDay='" + stayDay + '\'' +
                ", prepay='" + prepay + '\'' +
                ", rantal='" + rantal + '\'' +
                ", pay='" + pay + '\'' +
                '}';
    }
}
